<% remote_form_for(@product_attribute_template) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :name %>
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :data_type %>
    <%= f.select :data_type_id,@data_types.map{|p| [p.description,p.id]} %>
  </p>
    <p>
    <%= f.label :lookuplist %>
   <%= f.select :lookuplist_id,@lookuplists.map{|p| [p.name,p.id]},:prompt=>"如是选项请选择" %>
  </p>
  <p>
    <%= f.label :template_category %>
    <%= f.select :template_category_id,@template_categories.map{|p| [p.display_name,p.id]} %>
  </p>
    <p>
    <%= f.label :template_style_id %>
    <%= f.collection_select :template_style_id,TemplateStyle.all,:id,:des,:include_blank=>"不显示为参数" %>
  </p>

  <p>
    <%= f.label :display_name %>
    <%= f.text_field :display_name %>
  </p>
   <p>
    <%= f.label :ord,"排序" %>
    <%= f.text_field :ord %>
  </p>
  <p>
    <%= f.submit "添加" %>
  </p>
<% end %>



